<template>
  <div>
    <Modal
      :value="modalState"
      :loading="loading"
      ok-text="确认保存"
      @on-ok="handleSubmit"
      @on-cancel="cancel">
      <div style="margin-left: 180px; font-size: 15px">
        已确认编辑信息
      </div>
    </Modal>
  </div>
</template>
<script>
import {
  mapActions,
  mapState
} from 'vuex'
export default {
  name: 'EditConfirmModal',
  props: {
    modalState: Boolean
  },
  data () {
    return {
      title: '',
      loading: true
    }
  },
  updated () {
    this.title = '确认框'
  },
  methods: {
    changeLoading () {
      this.loading = false
      this.$nextTick(() => {
        this.loading = true
      })
    },
    handleSubmit () {
      this.$emit('confirm-valid')
    },
    cancel () {
      this.$emit('cancel-confirm')
    }
  }
}
</script>
